Integrand size = 15, antiderivative size = 94 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=-\frac {6 b \cosh (c+d x)}{d^4}-\frac {2 a x \cosh (c+d x)}{d^2}-\frac {3 b x^2 \cosh (c+d x)}{d^2}+\frac {2 a \sinh (c+d x)}{d^3}+\frac {6 b x \sinh (c+d x)}{d^3}+\frac {a x^2 \sinh (c+d x)}{d}+\frac {b x^3 \sinh (c+d x)}{d} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {6874, 3377, 2717, 2718} \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=\frac {2 a \sinh (c+d x)}{d^3}-\frac {2 a x \cosh (c+d x)}{d^2}+\frac {a x^2 \sinh (c+d x)}{d}-\frac {6 b \cosh (c+d x)}{d^4}+\frac {6 b x \sinh (c+d x)}{d^3}-\frac {3 b x^2 \cosh (c+d x)}{d^2}+\frac {b x^3 \sinh (c+d x)}{d} \]
[In]
[Out]
Rule 2717
Rule 2718
Rule 3377
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \int \left (a x^2 \cosh (c+d x)+b x^3 \cosh (c+d x)\right ) \, dx \\ & = a \int x^2 \cosh (c+d x) \, dx+b \int x^3 \cosh (c+d x) \, dx \\ & = \frac {a x^2 \sinh (c+d x)}{d}+\frac {b x^3 \sinh (c+d x)}{d}-\frac {(2 a) \int x \sinh (c+d x) \, dx}{d}-\frac {(3 b) \int x^2 \sinh (c+d x) \, dx}{d} \\ & = -\frac {2 a x \cosh (c+d x)}{d^2}-\frac {3 b x^2 \cosh (c+d x)}{d^2}+\frac {a x^2 \sinh (c+d x)}{d}+\frac {b x^3 \sinh (c+d x)}{d}+\frac {(2 a) \int \cosh (c+d x) \, dx}{d^2}+\frac {(6 b) \int x \cosh (c+d x) \, dx}{d^2} \\ & = -\frac {2 a x \cosh (c+d x)}{d^2}-\frac {3 b x^2 \cosh (c+d x)}{d^2}+\frac {2 a \sinh (c+d x)}{d^3}+\frac {6 b x \sinh (c+d x)}{d^3}+\frac {a x^2 \sinh (c+d x)}{d}+\frac {b x^3 \sinh (c+d x)}{d}-\frac {(6 b) \int \sinh (c+d x) \, dx}{d^3} \\ & = -\frac {6 b \cosh (c+d x)}{d^4}-\frac {2 a x \cosh (c+d x)}{d^2}-\frac {3 b x^2 \cosh (c+d x)}{d^2}+\frac {2 a \sinh (c+d x)}{d^3}+\frac {6 b x \sinh (c+d x)}{d^3}+\frac {a x^2 \sinh (c+d x)}{d}+\frac {b x^3 \sinh (c+d x)}{d} \\ \end{align*}
Time = 0.13 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.69 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=\frac {-\left (\left (2 a d^2 x+3 b \left (2+d^2 x^2\right )\right ) \cosh (c+d x)\right )+d \left (a \left (2+d^2 x^2\right )+b x \left (6+d^2 x^2\right )\right ) \sinh (c+d x)}{d^4} \]
[In]
[Out]
Time = 0.12 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00
method | result | size |
parallelrisch | \(\frac {2 d^{2} x \left (\frac {3 b x}{2}+a \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-2 d \left (x^{2} \left (b x +a \right ) d^{2}+6 b x +2 a \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (3 b \,x^{2}+2 a x \right ) d^{2}+12 b}{d^{4} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )}\) | \(94\) |
risch | \(\frac {\left (b \,d^{3} x^{3}+a \,d^{3} x^{2}-3 b \,d^{2} x^{2}-2 a \,d^{2} x +6 d x b +2 d a -6 b \right ) {\mathrm e}^{d x +c}}{2 d^{4}}-\frac {\left (b \,d^{3} x^{3}+a \,d^{3} x^{2}+3 b \,d^{2} x^{2}+2 a \,d^{2} x +6 d x b +2 d a +6 b \right ) {\mathrm e}^{-d x -c}}{2 d^{4}}\) | \(117\) |
parts | \(\frac {b \,x^{3} \sinh \left (d x +c \right )}{d}+\frac {a \,x^{2} \sinh \left (d x +c \right )}{d}-\frac {\frac {3 b \,c^{2} \cosh \left (d x +c \right )}{d^{2}}-\frac {6 b c \left (\left (d x +c \right ) \cosh \left (d x +c \right )-\sinh \left (d x +c \right )\right )}{d^{2}}+\frac {3 b \left (\left (d x +c \right )^{2} \cosh \left (d x +c \right )-2 \left (d x +c \right ) \sinh \left (d x +c \right )+2 \cosh \left (d x +c \right )\right )}{d^{2}}+\frac {2 a \left (\left (d x +c \right ) \cosh \left (d x +c \right )-\sinh \left (d x +c \right )\right )}{d}-\frac {2 a c \cosh \left (d x +c \right )}{d}}{d^{2}}\) | \(161\) |
meijerg | \(\frac {8 b \cosh \left (c \right ) \sqrt {\pi }\, \left (\frac {3}{4 \sqrt {\pi }}-\frac {\left (\frac {3 x^{2} d^{2}}{2}+3\right ) \cosh \left (d x \right )}{4 \sqrt {\pi }}+\frac {d x \left (\frac {x^{2} d^{2}}{2}+3\right ) \sinh \left (d x \right )}{4 \sqrt {\pi }}\right )}{d^{4}}-\frac {8 i b \sinh \left (c \right ) \sqrt {\pi }\, \left (\frac {i x d \left (\frac {5 x^{2} d^{2}}{2}+15\right ) \cosh \left (d x \right )}{20 \sqrt {\pi }}-\frac {i \left (\frac {15 x^{2} d^{2}}{2}+15\right ) \sinh \left (d x \right )}{20 \sqrt {\pi }}\right )}{d^{4}}+\frac {4 i a \cosh \left (c \right ) \sqrt {\pi }\, \left (\frac {i x d \cosh \left (d x \right )}{2 \sqrt {\pi }}-\frac {i \left (\frac {3 x^{2} d^{2}}{2}+3\right ) \sinh \left (d x \right )}{6 \sqrt {\pi }}\right )}{d^{3}}+\frac {4 a \sinh \left (c \right ) \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\left (\frac {x^{2} d^{2}}{2}+1\right ) \cosh \left (d x \right )}{2 \sqrt {\pi }}-\frac {d x \sinh \left (d x \right )}{2 \sqrt {\pi }}\right )}{d^{3}}\) | \(206\) |
derivativedivides | \(\frac {\frac {3 b \,c^{2} \left (\left (d x +c \right ) \sinh \left (d x +c \right )-\cosh \left (d x +c \right )\right )}{d}-\frac {3 b c \left (\left (d x +c \right )^{2} \sinh \left (d x +c \right )-2 \left (d x +c \right ) \cosh \left (d x +c \right )+2 \sinh \left (d x +c \right )\right )}{d}+\frac {b \left (\left (d x +c \right )^{3} \sinh \left (d x +c \right )-3 \left (d x +c \right )^{2} \cosh \left (d x +c \right )+6 \left (d x +c \right ) \sinh \left (d x +c \right )-6 \cosh \left (d x +c \right )\right )}{d}-\frac {b \,c^{3} \sinh \left (d x +c \right )}{d}+a \,c^{2} \sinh \left (d x +c \right )-2 a c \left (\left (d x +c \right ) \sinh \left (d x +c \right )-\cosh \left (d x +c \right )\right )+a \left (\left (d x +c \right )^{2} \sinh \left (d x +c \right )-2 \left (d x +c \right ) \cosh \left (d x +c \right )+2 \sinh \left (d x +c \right )\right )}{d^{3}}\) | \(224\) |
default | \(\frac {\frac {3 b \,c^{2} \left (\left (d x +c \right ) \sinh \left (d x +c \right )-\cosh \left (d x +c \right )\right )}{d}-\frac {3 b c \left (\left (d x +c \right )^{2} \sinh \left (d x +c \right )-2 \left (d x +c \right ) \cosh \left (d x +c \right )+2 \sinh \left (d x +c \right )\right )}{d}+\frac {b \left (\left (d x +c \right )^{3} \sinh \left (d x +c \right )-3 \left (d x +c \right )^{2} \cosh \left (d x +c \right )+6 \left (d x +c \right ) \sinh \left (d x +c \right )-6 \cosh \left (d x +c \right )\right )}{d}-\frac {b \,c^{3} \sinh \left (d x +c \right )}{d}+a \,c^{2} \sinh \left (d x +c \right )-2 a c \left (\left (d x +c \right ) \sinh \left (d x +c \right )-\cosh \left (d x +c \right )\right )+a \left (\left (d x +c \right )^{2} \sinh \left (d x +c \right )-2 \left (d x +c \right ) \cosh \left (d x +c \right )+2 \sinh \left (d x +c \right )\right )}{d^{3}}\) | \(224\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.71 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=-\frac {{\left (3 \, b d^{2} x^{2} + 2 \, a d^{2} x + 6 \, b\right )} \cosh \left (d x + c\right ) - {\left (b d^{3} x^{3} + a d^{3} x^{2} + 6 \, b d x + 2 \, a d\right )} \sinh \left (d x + c\right )}{d^{4}} \]
[In]
[Out]
Time = 0.27 (sec) , antiderivative size = 117, normalized size of antiderivative = 1.24 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=\begin {cases} \frac {a x^{2} \sinh {\left (c + d x \right )}}{d} - \frac {2 a x \cosh {\left (c + d x \right )}}{d^{2}} + \frac {2 a \sinh {\left (c + d x \right )}}{d^{3}} + \frac {b x^{3} \sinh {\left (c + d x \right )}}{d} - \frac {3 b x^{2} \cosh {\left (c + d x \right )}}{d^{2}} + \frac {6 b x \sinh {\left (c + d x \right )}}{d^{3}} - \frac {6 b \cosh {\left (c + d x \right )}}{d^{4}} & \text {for}\: d \neq 0 \\\left (\frac {a x^{3}}{3} + \frac {b x^{4}}{4}\right ) \cosh {\left (c \right )} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 196 vs. \(2 (94) = 188\).
Time = 0.21 (sec) , antiderivative size = 196, normalized size of antiderivative = 2.09 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=-\frac {1}{24} \, d {\left (\frac {4 \, {\left (d^{3} x^{3} e^{c} - 3 \, d^{2} x^{2} e^{c} + 6 \, d x e^{c} - 6 \, e^{c}\right )} a e^{\left (d x\right )}}{d^{4}} + \frac {4 \, {\left (d^{3} x^{3} + 3 \, d^{2} x^{2} + 6 \, d x + 6\right )} a e^{\left (-d x - c\right )}}{d^{4}} + \frac {3 \, {\left (d^{4} x^{4} e^{c} - 4 \, d^{3} x^{3} e^{c} + 12 \, d^{2} x^{2} e^{c} - 24 \, d x e^{c} + 24 \, e^{c}\right )} b e^{\left (d x\right )}}{d^{5}} + \frac {3 \, {\left (d^{4} x^{4} + 4 \, d^{3} x^{3} + 12 \, d^{2} x^{2} + 24 \, d x + 24\right )} b e^{\left (-d x - c\right )}}{d^{5}}\right )} + \frac {1}{12} \, {\left (3 \, b x^{4} + 4 \, a x^{3}\right )} \cosh \left (d x + c\right ) \]
[In]
[Out]
none
Time = 0.47 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.23 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=\frac {{\left (b d^{3} x^{3} + a d^{3} x^{2} - 3 \, b d^{2} x^{2} - 2 \, a d^{2} x + 6 \, b d x + 2 \, a d - 6 \, b\right )} e^{\left (d x + c\right )}}{2 \, d^{4}} - \frac {{\left (b d^{3} x^{3} + a d^{3} x^{2} + 3 \, b d^{2} x^{2} + 2 \, a d^{2} x + 6 \, b d x + 2 \, a d + 6 \, b\right )} e^{\left (-d x - c\right )}}{2 \, d^{4}} \]
[In]
[Out]
Time = 1.81 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.98 \[ \int x^2 (a+b x) \cosh (c+d x) \, dx=\frac {2\,a\,\mathrm {sinh}\left (c+d\,x\right )+6\,b\,x\,\mathrm {sinh}\left (c+d\,x\right )}{d^3}-\frac {2\,a\,x\,\mathrm {cosh}\left (c+d\,x\right )+3\,b\,x^2\,\mathrm {cosh}\left (c+d\,x\right )}{d^2}+\frac {a\,x^2\,\mathrm {sinh}\left (c+d\,x\right )+b\,x^3\,\mathrm {sinh}\left (c+d\,x\right )}{d}-\frac {6\,b\,\mathrm {cosh}\left (c+d\,x\right )}{d^4} \]
[In]
[Out]